public class String6 {
    public void method(String s){
        s = "aaa";
    }
    public static void main(String[] args) {
        String s1 = "abc";
       // String s2 = "abc";
        String6 string6 = new String6();
        string6.method(s1);//1
        System.out.println(s1);
        s1 = "bbb";//2
        System.out.println(s1);
      //  System.out.println(s1==s2);
    }
}
